{template header}

    {template sidebar}

    <!-- artile begin -->
    <div class="article">
        {template title}
        <form method="post" action="{$this->url($c, 'save')}">
        <table>
            <tr>
                <td width="25%" class="td1">网站地址：</td>
                <td class="td2">
                    <input name="setting[weburl]" type="text" value="{$setting['weburl']}" />
                </td>
            </tr>
            <tr>
                <td class="td1">网站名称：</td>
                <td class="td2">
                    <input name="setting[webname]" type="text" value="{$setting['webname']}" />
                </td>
            </tr>

            <tr>
                <td class="td1">缓存时间：</td>
                <td class="td2">
                    <input name="setting[cache_time]" type="text" class="span1" value="{echo empty($setting['cache_time']) ? 60 : $setting['cache_time']}" />
                    小时
                </td>
            </tr>

            <tr>
                <td class="td1">COOKIE有效期：</td>
                <td class="td2">
                    <input name="setting[cookie_time]" type="text" class="span1" value="{echo empty($setting['cookie_time']) ? 30 : $setting['cookie_time']}" />
                    天
                </td>
            </tr>

            <tr>
                <td class="td1">默认时区：</td>
                <td class="td2">
                    <select name="setting[timezone]">
                        <!--{loop $timezone $k $v}-->
                        <option value="{$k}"{echo (!empty($setting['timezone']) ? $setting['timezone'] : 'Asia/Brunei') == $k ? ' selected' : ''}>{$v}</option>
                        <!--{/loop}-->
                    </select>
                </td>
            </tr>

            <tr>
                <td class="td1">时间格式：</td>
                <td class="td2">
                    <select name="setting[timeformat]">
                        <!--{loop $timeformat $k $v}-->
                        <option value="{$k}"{echo (!empty($setting['timeformat']) ? $setting['timeformat'] : 'Y-m-d H:i:s') == $k ? ' selected' : ''}>{$v}</option>
                        <!--{/loop}-->
                    </select>
                </td>
            </tr>

            <tr>
                <td class="td1">上传目录格式：</td>
                <td class="td2">
                    <select name="setting[updir]">
                        <!--{loop $this->getUPDIR() $k $v}-->
                        <option value="{$k}"{echo (!empty($setting['updir']) ? $setting['updir'] : 'ymd') == $k ?' selected' : ''}>{$v}</option>
                        <!--{/loop}-->
                    </select>
                </td>
            </tr>

            <tr>
                <td class="td1">允许上传的文件类型：</td>
                <td class="td2">
                    <input name="setting[uptype]" class="span4" type="text" value="{echo isset($setting['uptype']) ? $setting['uptype'] : 'jpg,png,gif'}" />
                     <span class="label label-info">留空不限制, 格式: '*.zip;'</span>
                </td>
            </tr>

            <tr>
                <td class="td1">允许上传的文件大小：</td>
                <td class="td2">
                    <input name="setting[upsize]" type="text" class="span1" value="{echo isset($setting['upsize']) ? $setting['upsize'] : '2'}" /> MB
                </td>
            </tr>

            <tr>
                <td colspan="2" class="td4 over">
                    <a title="保存设置" class="btn btn-success save" href="{$this->url($c, null, array('type' => $type) )}">保存</a>
                </td>
            </tr>
        </table>
        </form>
    </div>
    <!-- artile end -->
{template footer}